home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Periodicals / develop / develop Issue 4 / develop 4 code / Poly. in Code Resources / Virtual WDEF / WindowFrame.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-24  |  651 b   |  34 lines  |  [TEXT/MPS ]

  1. /*
  2.     WindowFrame.h
  3.     
  4.     Interface to WindowFrame class.
  5.     
  6.     by Patrick Beard.
  7.     
  8.     ©1990 by Patrick C. Beard.  All rights reserved.
  9.  */
  10.  
  11. #ifndef __WINDOWFRAME__
  12. #define __WINDOWFRAME__
  13.  
  14. #include "WindowDefinition.h"
  15.  
  16. // macros.
  17.  
  18. #define topLeft(r)    (((Point*)&r)[0])
  19. #define botRight(r)    (((Point*)&r)[1])
  20.  
  21. class WindowFrame : public WindowDefinition {
  22. public:
  23.     virtual void New(WindowPeek theWindow);
  24.     virtual void Dispose();
  25.     virtual void CalcRgns();
  26.     virtual void DrawFrame();
  27.     virtual void DrawGrowImage(Rect& growRect);
  28.     virtual long Hit(Point& whereHit);
  29. private:
  30.     RgnHandle itsBorderRgn;        // border between content and structure boundaries.
  31. };
  32.  
  33. #endif
  34.